package com.lxm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxm.dto.PasswordEditDTO;
import com.lxm.dto.Result;
import com.lxm.dto.UserInfoDTO;
import com.lxm.dto.UserInfoModifyDTO;
import com.lxm.entity.UserInfo;
import jakarta.servlet.http.HttpServletRequest;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 用户信息表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-10-02
 */
public interface UserInfoService extends IService<UserInfo> {
    Result register(UserInfoDTO userInfoDTO);

    Result getDetails();

    Result modifyUserInfo(UserInfoModifyDTO userInfo);

    @Transactional
    Result deleteUser(HttpServletRequest request);

    Result updatePassword(PasswordEditDTO userPassword);

    Result forgetPassword(PasswordEditDTO userPassword);

}
